// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';

import error_404 from '@/components/404';
import error_403 from '@/components/403';
import error_500 from '@/components/500';
import wel from '@/components/wel';
export default [
  {
  path: '/',
  name: '',
  component: login,
  hidden: true,
  meta: {
    requireAuth: false
  }
}
  ,
  {
    path: '/login',
    name: '登录',
    component: login,
    hidden: true,
    meta: {
      requireAuth: false
    }
  },

  {
    path: '/404',
    name: '404',
    component: error_404,
    hidden: true,
    meta: {
      requireAuth: false
    }
  },
  {
    path: '/403',
    name: '403',
    component: error_403,
    hidden: true,
    meta: {
      requireAuth: false
    }
  },
  {
    path: '/500',
    name: '500',
    component: error_500,
    hidden: true,
    meta: {
      requireAuth: false
    }
  },

  {
    path: '/index',
    name: '首页',
    component: index,
    redirect: '/wel',
    iconCls: 'el-icon-tickets',
    children: [
      {
        path: '/myiframe/:routerPath',
        component: () => import ('@/components/iframe/main'),
        props: true
      },
      {
        path: '/wel',
        name: 'wel',
        component: wel,
        hidden: true,
        meta: {
          requireAuth: false
        }
      },

    ]
  }]
